﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewNewsCategory.aspx.cs" Inherits="NewsManagement_ViewNewsCategory" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
   <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
               查看新闻类别列表</div>
        </div> 
   
   <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
      <tr class="header">
       <td class="noWrapTD">操作</td>
    <td  class="noWrapTD">类别名称</td>
    <td  class="noWrapTD" >描述</td>
    <td  class="noWrapTD" >创建时间</td>
    <td  class="noWrapTD" >修改时间</td>
    
    </tr>  
    <asp:Repeater ID="repNews" runat="server">
           <ItemTemplate>
          <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
           <td class="ta2">
           <asp:LinkButton CssClass="button2" ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnUpdate_Click" Text="修改信息"></asp:LinkButton>
           <asp:LinkButton CssClass="button2" ID="btnDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>' OnCommand="btnDelete_Command" OnClientClick='return confirm("确定要删除么？")' Text="删除"></asp:LinkButton>
           </td>
           <td class="ta2"><%#Eval("Title")%>&nbsp;</td>
           <td class="ta2" onmouseover="this.title = this.innerText"><div style="overflow: hidden; width: 200px; white-space: nowrap; text-overflow: ellipsis;"><%#Eval("Description")%></div></td>
           <td class="ta2"><%#DataBinder.Eval(Container.DataItem, "CreatedTime", "{0:yyyy-MM-dd}")%></td>
           <td class="ta2"><%#DataBinder.Eval(Container.DataItem,"updatetime", "{0:yyyy-MM-dd}")%>&nbsp;</td> 
           </tr>
            </ItemTemplate>
            </asp:Repeater>
             </table>
             <br class="sp3px" />
              <webdiyer:AspNetPager ID="pager" runat="server" 
                onpagechanged="pager_PageChanged" PageSize="20" CssClass="anpager" CurrentPageButtonClass="cpb">
            </webdiyer:AspNetPager>
        </div>
    <asp:Button ID="btnNews" runat="server" Text="添加新闻" Width="70px" 
        CssClass="button" onclick="btnNews_Click"/>
    </form>
</body>
</html>
